aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/address
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-02 23:26:34 -0800
committerAdam Soltys <[email protected]>2023-02-02 23:29:42 -0800
commit9a53b429daf44da7a4272db56350ef32ca494de5 (patch)
treea2dc51e4f16fab464788c54dd60e6c18dc8923b0 /src/routes/(app)/[username]/address
parent4eb51e283cc88e7c3e81718d917fa263d8fae65c (diff)
downloadcoinos-ui-9a53b429daf44da7a4272db56350ef32ca494de5.tar.gz
coinos-ui-9a53b429daf44da7a4272db56350ef32ca494de5.zip
move invoices, combine profile and dashboard
Diffstat (limited to 'src/routes/(app)/[username]/address')
-rw-r--r--src/routes/(app)/[username]/address/+page.server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/[username]/address/+page.server.js b/src/routes/(app)/[username]/address/+page.server.js
index 5d7c3044..247a33a2 100644
--- a/src/routes/(app)/[username]/address/+page.server.js
+++ b/src/routes/(app)/[username]/address/+page.server.js
@@ -5,6 +5,6 @@ export async function load({ cookies, params, parent }) {
let user = (await parent()).subject;
let rates = await get('/rates');
let invoice = { type: 'bitcoin' };
- let { hash } = await post('/invoice', { invoice, user }, auth(cookies));
- throw redirect(307, `/invoice/${hash}`);
+ let { hash } = await post(`/invoice`, { invoice, user }, auth(cookies));
+ throw redirect(307, `/${user.username}/invoice/${hash}`);
}